package com.genius.reservation.mapper;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.genius.reservation.car.entity.CarInformation;
import com.genius.reservation.car.entity.ReservationStartCarInformation;
import com.genius.reservation.common.BaseDao.BaseDao;
import com.genius.reservation.reservation.entity.ReservationOrderInformation;
import io.lettuce.core.dynamic.annotation.Param;

import java.util.List;

/**
 * <p>
 * 车辆信息表 Mapper 接口
 * </p>
 *
 * @author baomidou
 * @since 2022-05-26
 */
public interface ReservationStartCarInformationMapper extends BaseDao<ReservationStartCarInformation> {
    default LambdaQueryWrapper<ReservationStartCarInformation> getWrapper(){
        return new LambdaQueryWrapper();
    }
    default ReservationStartCarInformation up(ReservationStartCarInformation reservation){
        this.update(reservation);
        return reservation;
    }

    default ReservationStartCarInformation ad(ReservationStartCarInformation reservation){
        this.save(reservation);
        return reservation;
    }

    List<ReservationStartCarInformation> getListByActualReceiverNumber(@Param("receiverNumber")String receiverNumber);
    List<ReservationStartCarInformation> getUnfinishByStartCarId(@Param("receiverNumber")String receiverNumber);
    ReservationStartCarInformation getFinishListByStartCarId(@Param("startCarId")Integer startCarId);

    List<ReservationStartCarInformation> getReceiveList();



}
